home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11694 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  855 b 

  1. Path: news.pncl.co.uk!news
  2. From: henrya@pncl.co.uk (Henry Audley-Charles)
  3. Newsgroups: comp.lang.c
  4. Subject: Deleting lines from text files.
  5. Date: Mon, 25 Mar 1996 21:51:20 GMT
  6. Organization: Pinnacle Internet Services
  7. Message-ID: <4j749k$qs9@eiger.pncl.co.uk>
  8. Reply-To: henrya@pncl.co.uk
  9. NNTP-Posting-Host: login23.pncl.co.uk
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. My text file contains numbers in the range 01 to 49 ie lottery style.
  13. Each set of six numbers occupies a line of text in the .dat file.  I
  14. can add new lines at the end but can't delete lines.  Also, what is
  15. the difference between fprintf (" ...... ");    & fwrite (stream, "
  16. ..   ") etc.  I have tried both but seem to end up with the wrong
  17. bits being removed.  I think its somthing to do with fseek or rewind.
  18. P L E A S E  H E L P  !  :(
  19.  
  20. Please mail all ideas to henrya@pncl.co.uk
  21.  
  22. Thanx.
  23.  
  24.